package com.keyingbo.leran.pattern.factorypattern;

public abstract class Cat {
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    private String name;

    public void drive() {
        System.out.println(this.getName() + "正在行驶");
    }
}
